
#ifndef YAPI_PARSER_H__
#define YAPI_PARSER_H__

#include <stdio.h>
#include "list.h"

#ifdef __cplusplus
extern "C" {
#endif

//typedef void* YapiParser;

typedef struct _yapi_parser_t_ 
{
    size_t (*analysis)(void *buffer, size_t size, size_t nmemb, struct list_head *list);
} YapiParser;

YapiParser* yapiparser_create(void);
YapiParser* yapiparser_destroy(YapiParser* parser);
#ifdef __cplusplus
}
#endif


#endif
